package com.kakaxi.mybilibili.module.home.live.model;

import com.alibaba.fastjson.JSONObject;
import com.kakaxi.mybilibili.common.WebUrlConst;
import com.kakaxi.mybilibili.net.FastJsonCacheRequest;
import com.kakaxi.mybilibili.net.Netroid;
import com.vincestyling.netroid.Listener;

/**
 * 直播主页面的数据对象接口的实现
 * Created by kakaxi on 16/9/28.
 */

public class LiveHomeModel implements ILiveHomeModel {

    @Override
    public void getLiveData(boolean updateCached, Listener<JSONObject> listener) {
        // 发送请求
        Netroid.addRequest(new FastJsonCacheRequest(WebUrlConst.LIVE_HOME_URL, null, listener, null),
                true);
    }

    @Override
    public void getLiveAllCategoryData(Listener<JSONObject> listener) {
        Netroid.addRequest(new FastJsonCacheRequest(WebUrlConst.liveAllAreaCategoryUrl, null,
                listener, null), true);
    }

}
